libxl: correct file open success check in libxl__device_pci_reset
authorMatthew Daley <mattd@bugfuzz.com>
Sun, 1 Dec 2013 10:14:57 +0000 (23:14 +1300)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 2 Dec 2013 11:56:39 +0000 (11:56 +0000)
commit3928e5ccdb6c3c4e1f5c6f0d61b3d6219a24d009
treea890ac46b87a415701b597cb18347cbc4be6a097
parentcb08944a482a5e80a3ff1113f0735761cc4c6cb8
libxl: correct file open success check in libxl__device_pci_reset

It could, even if only in theory, be fd 0.

(This is not the same as commit 4b62556b57!)

Coverity-ID: 1055895
Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c